package com.dykj.fireFighting.server.base.system.mapper;

import com.dykj.fireFighting.api.base.system.entity.SysDirectory;
import com.dykj.fireFighting.api.base.system.vo.SysDirectoryVo;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description 数据字典
 * @Author hxb
 * @Date 2021-06-19 15:12:17
 */
public interface SysDirectoryMapper extends SuperMapper<SysDirectory> {

    /**
     * 获取变量树表
     *
     * @return
     */
    List<SysDirectoryVo> querySysDirectory(Map<String, Object> par);

    /**
     * 根据类型获取字典数据
     *
     * @param typeList
     * @return
     */
    List<SysDirectoryVo> queryDirectoryByType(@Param("typeList") List<String> typeList);

    /**
     * 查询子字典数据
     *
     * @param params
     * @return
     */
    List<SysDirectory> getChildSysDirectoryList(Map<String, Object> params);

    /**
     * 获取字典信息
     *
     * @param id
     * @return
     */
    SysDirectoryVo getSysDirectoryVoById(Integer id);
}
